#include "WDirectory.h"

WDirectory::WDirectory(IWbemClassObject* pclsObj) : WFileDirectory(pclsObj)
{
}

WDirectory::WDirectory(wstring& dirName) : WFileDirectory()
{
    setName(dirName);
}

WDirectory::~WDirectory(void)
{
}

void WDirectory::addFileDir(WFileDirectory* fileDir)
{
    _content.push_back(fileDir);
}
    
void WDirectory::print()
{
    for(vector<WFileDirectory*>::iterator it = _content.begin(); it != _content.end(); it++)
    {
        (*it)->print();
    }
}
